{% extends "base.html" %}
{% block title %}
新闻管理-编辑
{% endblock %}
{% block head %}
<!-- Bootstrap Core CSS -->
<link href="/static/lib/sb-admin/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

<!-- MetisMenu CSS -->
<link href="/static/lib/sb-admin/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">

<!-- Custom CSS -->
<link href="/static/lib/sb-admin/dist/css/sb-admin-2.css" rel="stylesheet">

<!-- Custom Fonts -->
<link href="/static/lib/sb-admin/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
{% endblock %}
{% block label %}
<h1 class="page-header">新闻管理-编辑</h1>
{% endblock %}
{% block contenter %}
<div class="row">
    <div class="row">
        <form method="post" enctype="multipart/form-data">
            <input type="hidden" name="csrf_token"
                   value="IjgzMzA5OWI2ZmJmZWFhNGYxOWZkMGM4OTA5YjcwODE1YTgyYmI1ZjEi.XrK1lQ.v8mQc5gPcaF2_htJHJkaN8Eadcs">
            <div class="form-group">
                <label class="control-label">标题:</label>
                <input class="form-control" type="text" name="title" placeholder="标题" value="{{M_news.title}}">
            </div>
            <div class="form-group">
                <label class="control-label">作者:</label>
                <input class="form-control" type="text" name="author" placeholder="作者" value="{{M_news.author}}">
            </div>
            <div class="form-group">
                <label class="control-label">内容:</label>
                <textarea class="form-control ckeditor" name="content">
                                            {{M_news.content | safe}}
                                    </textarea>
            </div>
            <div class="form-group">
                <label class="control-label">图片:</label>
                <input type="file" name="picture">
                <div class="form-group">
                    <button class="btn btn-primary btn-block">提交</button>
                </div>
        </form>
    </div>
</div>
</div>
{% endblock %}
{% block body %}
<!-- /#wrapper -->

<!-- jQuery -->
<script src="/static/lib/sb-admin/vendor/jquery/jquery.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="/static/lib/sb-admin/vendor/bootstrap/js/bootstrap.min.js"></script>

<!-- Metis Menu Plugin JavaScript -->
<script src="/static/lib/sb-admin/vendor/metisMenu/metisMenu.min.js"></script>

<!-- Custom Theme JavaScript -->
<script src="/static/lib/sb-admin/dist/js/sb-admin-2.js"></script>

<script src="/static/lib/ckeditor/ckeditor.js"></script>
{% endblock %}

